<template>
    <div class="topbar">
        <span class="back" @click="back">
            <i class="iconfont icon-arrow-left"></i>
            返回
        </span>
        <p class="title">{{ $route.meta.title }}</p>
    </div>
</template>

<script>
import { getList, test } from "@/api/sjAPI"
export default {
    name: 'topbar',
    props: ["title", "toHere"],
    data() {
        return {

        };
    },

    mounted() {


    },

    methods: {
        back() {
            this.$bus.$emit("gomy")
            this.$router.push({ name: this.$route.meta.toHere })

        }
    },
};
</script>

<style lang="less" scoped>
.topbar {
    width: 100%;
    height: 246px;
    line-height: 246px;
    position: sticky;
    top: 0;
    left: 0;
    background-color: white;
    z-index: 88;

    .back {
        position: absolute;
        top: 0;
        left: 60px;
        color: #1989fa;
        border-bottom: 1px solid #f9f9fa;

    }

    .title {

        text-align: center;

    }
}
</style>